<?php include 'header.php' ?>
<div class="content">
       <div class="container_12">

        <?php echo form_open_multipart('test/editFood/'.$id);?>            
       	<div class="grid_8">
        <h3><?php echo $title; ?></h3>           
            <div class="block3">
            	<!-- <div class="relative">
            		<img src="page3_img1.jpg" alt="" class="img_inner">
            		<div class="r_price"><span>$</span>32.99</div>
            	</div>   -->          	           
            	<div class="text1">Tên món ăn : </div>
                <?php echo form_input('food',$food[$id]['food']); ?>
            </div>  
            <br>
            <div class="clear"></div>            
            <div class="block3">
            	<div class="relative">
            		<?php echo img(array('src'=>'uploads/'.$food[$id]['picture'],'width'=>'200px','height'=>'200px','class'=>'img_inner')); ?>               	
            	</div>          	           
            	<div class="text1">Hình ảnh : </div>    
                <?php echo form_upload('picture'); ?>                        
            </div>  
            <br>
            <div class="clear"></div>
            <div class="block3">
                <!-- <div class="relative">
                    <img src="page3_img1.jpg" alt="" class="img_inner">
                    <div class="r_price"><span>$</span>32.99</div>
                </div>   -->                       
                <div class="text1">Cách nấu : </div>
               <?php echo form_textarea('howtocook',$food[$id]['howtocook']); ?>
            </div>  
            <br>
            <div class="clear"></div>
            <div class="block3">
                <!-- <div class="relative">
                    <img src="page3_img1.jpg" alt="" class="img_inner">
                    <div class="r_price"><span>$</span>32.99</div>
                </div>   -->                       
                <div class="text1">Gia vị : </div>
               <?php echo form_textarea('spice',$food[$id]['spice']); ?>
            </div>
            <br>
            <div class="clear"></div>
            <div class="block3">
                <!-- <div class="relative">
                    <img src="page3_img1.jpg" alt="" class="img_inner">
                    <div class="r_price"><span>$</span>32.99</div>
                </div>   -->                       
                <div class="text1"><?php echo form_submit('edit', 'Sửa món ăn');?></div>               
            </div>    
        </div>
        </form>             
        <div class="clear"></div>
       </div>
     </div>

<?php include 'footer.php' ?>